//
//  ICJSBridgeWebViewController.h
//  ICome
//
//  Created by zhang_rongwu on 16/3/4.
//  Copyright © 2016年 iCom. All rights reserved.
//

#import "ICBaseViewController.h"
#import "ICApplicationNetworkManager.h"
#import "JSBridgeManager.h" // js native 交互管理类
#import "ICJSBridgeTools.h" // js 调用本地方法
#import "ICPhotoPickerManager.h"
#import "UIImage+Extension.h"
#import "NSString+Base64.h"
#import "ICChatViewController.h"
#import "ICConversationListViewController.h" // 选择会话
#import "ICRCodeViewController.h"
#import "ICDocumentViewController.h"
#import "ICWebNavTitleView.h"
#import "ICFaceDetectorViewController.h"
#import "ICActionSheetView.h"



@interface ICWebViewController : ICBaseViewController<ICDocumentDelegate>
+(ICWebViewController *)jsBridgeWKWebViewWithPath:(NSString *)path title:(NSString *)title;

@property (nonatomic, strong)NSString *originalURL; // 针对轻应用校验

// Category
@property (nonatomic, strong)NSMutableDictionary *callbackMap;
@property (nonatomic, strong)NSMutableDictionary *jsRequestParam;
@property (nonatomic, strong)WKWebView *webView;
@property (nonatomic, strong)NSString *permURL;
@property (nonatomic, strong)JSBridgeManager *jsBridge;
@property (nonatomic, strong)NSMutableArray *jsApiList;

@property (nonatomic, strong)NSString *configURL;

@property (nonatomic, strong)NSString * callName;

@property (nonatomic, strong)UIProgressView *progressView;
@property (nonatomic, strong)UIView *statusBarView;
@property (nonatomic, assign)BOOL isHideNavigationBar;
@property (nonatomic, strong)NSDictionary *jsOptionMenuParam;
@property (nonatomic, strong)ICWebNavTitleView *navTitleView;

@property (nonatomic, strong)ICActionSheetView *actionSheet; 




- (BOOL)shareInfoToSession:(NSDictionary *)info;
- (void)setLeftBarButtonItemsWithCloseItem:(BOOL)close;
- (void)setRightBarButtonItemsWithCloseItem:(BOOL)close;
- (void)jsBridge:(JSBridgeManager *)bridge didFailProvisionalNavigation:(WKNavigation *)navigation withError:(NSError *)error;
- (void)rightBarButtonClicked;

@end
